$class-prefix-divider: rt-divider;

.#{$class-prefix-divider} {

  --content-color: var(--divider-content-color, var(--rt-color-weak));
  --border-color: var(--divider-border-color, var(--rt-color-border));

  &-horizontal {
    display: flex;
    align-items: center;
    margin: 16px 0;
    border-width: 0;
    border-color: var(--border-color);
    border-style: solid;
    font-size: 14px;
    color: var(--content-color);

    &::after,
    &::before {
      flex: auto;
      display: block;
      content: "";
      border-style: inherit;
      border-color: inherit;
      border-width: 1px 0 0;
    }

    &.#{$class-prefix-divider}-left {
      &::before {
        max-width: 10%;
      }
    }

    &.#{$class-prefix-divider}-right {
      &::after {
        max-width: 10%;
      }
    }

    .#{$class-prefix-divider}-content {
      flex: none;
      padding: 0 16px;
    }
  }

  &-vertical {
    position: relative;
    top: -0.06em;
    display: inline-block;
    height: 0.9em;
    margin: 0 16px;
    vertical-align: middle;
    border-top: 0;
    border-left: 1px solid var(--border-color);
  }
}
